/* 
 * 路由表对象：
 * 该文件挂载在Vue原型中 $mRoutesConfig
 * 作用：调用$mRouter对象的方法 传入以下对应的路由对象，详细见common目录下的router.js
 * 示例：this.$mRouter.push({route:this.$mRoutesConfig.main,query:{a:1}})
 * 注意：所有在pages目录下新建的页面都必须在"路由表"中进行声明，并且在框架的pages.json注册。
 * 
 * 配置参数项说明： 
 * name:可选配置 （路由名称）
 * path:必填配置 （路由地址）
 * requiresAuth:可选配置 （是否权限路由）
 */

export default {
	// 权限路由
	my: {
		name: "我的",
		path: "/pages/my/my",
		requiresAuth: true
	},
	setup: {
		name: "设置",
		path: "/pages/my/setup",
		requiresAuth: true
	},
	editUserInfo: {
		name: "修改资料",
		path: "/pages/my/editUserInfo",
		requiresAuth: true
	},
	myMessage: {
		name: "我的消息",
		path: "/pages/my/message",
		requiresAuth: true
	},
	notify: {
		name: "系统通知",
		path: "/pages/my/notify",
		requiresAuth: true
	},
	order: {
		name: "购买宝贝",
		path: "/pages/myorders/order",
		requiresAuth: true
	},
	saleIndex: {
		name: "我卖出的",
		path: "/pages/myorders/saleIndex",
		requiresAuth: true
	},
	orderIndex: {
		name: "我卖出的",
		path: "/pages/myorders/myorders",
		requiresAuth: true
	},
	favoriteIndex: {
		name: "我卖出的",
		path: "/pages/my/favoriteIndex",
		requiresAuth: true
	},
	traceIndex: {
		name: "我的足迹",
		path: "/pages/my/traceIndex",
		requiresAuth: true
	},
    addressList: {
    	name: "收货地址",
    	path: "/pages/address/index",
    	requiresAuth: true
    },
	addAddress: {
		name: "添加地址",
		path: "/pages/address/addAddress",
		requiresAuth: true
	},
	// 非权限路由
	index: {
		name: "首页",
		path: "/pages/index/index"
	},
	login: {
		name: "登录",
		path: "/pages/login/login"
	},
	reg: {
		name: "注册",
		path: "/pages/login/reg"
	},
	myCenter: {
		name: "个人中心",
		path: "/pages/my/my"
	},
	forgetPwd: {
		name: "找回密码",
		path: "/pages/login/forgetPwd"
	},
	sovleList: {
		name: "考试列表",
		path: "/pages/solve/index"
	},
	paper: {
		name: "考试答题",
		path: "/pages/solve/paper"
	},
	newsList: {
		name: "活动报道列表",
		path: "/pages/news/news"
	},
	newsInfo: {
		name: "活动报道详情",
		path: "/pages/news/newsInfo"
	},
	signup: {
		name: "报名",
		path: "/pages/signup/signup"
	},
	signupList: {
		name: "报名列表",
		path: "/pages/signup/index"
	},
	shoppingCard: {
		name: "我的购物车",
		path: "/pages/shoppingCard/shoppingCard"
	},
	productDetail: {
		name: "商品详情",
		path: "/pages/productInfo/productInfo"
	},

}
